package com.bw.lib_common.base

/**
 * @author ykj
 * @date 2025-10-16 20:37
 * @description
 * activity基类:带mvi
 */
abstract class BaseMVIActivity :BaseActivity(),IView{
    /**
     * 实例化viewmodel
     */
    abstract fun generateViewModel()

    override fun initEnv() {
        super.initEnv()
        generateViewModel()
    }


    /**
     * 页面活跃的时候处理状态
     */
    override fun onResume() {
        super.onResume()
        handleState()
    }

}